package com.wn.sddfp.trade.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wn.sddfp.common.model.dto.bank.BankCardRequestDto;
import com.wn.sddfp.common.model.dto.borrow.BorrowRecordDTO;
import com.wn.sddfp.common.model.dto.borrow.BorrowRecordQuery;
import com.wn.sddfp.common.model.dto.borrow.BorrowRecordVo;
import com.wn.sddfp.common.model.dto.borrow.Pages;
import com.wn.sddfp.trade.entity.BorrowRecord;

/**
 * @author yellow Docter
 * @date 2023 -07-31
 * @desc
 */
public interface IBorrowRecordService extends IService<BorrowRecord> {

    void addBorrowRecord(BorrowRecordDTO borrowRecordDTO);

    /**
     * 分页条件查询
     * @param pageNum
     * @param pageSize
     * @param borrowRecordQuery
     * @return
     */
    Pages<BorrowRecordVo> queryBorrowRecord(Integer pageNum, Integer pageSize, BorrowRecordQuery borrowRecordQuery);

    /**
     * 借款审核
     * @param approveStatus
     * @param borrowRecordId
     * @return
     */
    String verifyStatus(Integer approveStatus, Long borrowRecordId);
}
